package com.szrt.day20170505.ch03;


/**
 * 节点  node
 * @author zsrt
 *
 */
public class Node {
	
	
	/**
	 * 1数据域
	 */
	private int data;
	
	
	/**
	 * 2链域 理解的关键 next 指向下一个节点
	 */
	private Node next;


	public int getData() {
		return data;
	}
	
	
	
	public Node(){}

	public Node(int data) {
		super();
		this.data = data;
	}

	public void setData(int data) {
		this.data = data;
	}


	public Node getNext() {
		return next;
	}


	public void setNext(Node next) {
		this.next = next;
	}
	
	
	
	

}
